package cn.tedu.ivos.user.pojo.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;

//用于： 将数据封装为User对象 插入/更新到数据库中
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {
    //Knife4j的注解。用来解释此字段的作用
    private Long id;
    private String username;
    private String password;
    private String email;
    private String phone;
    private Integer age;
    private String gender;
    private Date createTime;
    private Date updateTime;
    private String status;
    private String level;
    private Long parentId;
}
/*    @ApiModelProperty(value = "用户id")
    private Long id;
    @ApiModelProperty(value = "用户名")
    private String username;
    @ApiModelProperty(value = "密码")
    private String password;
    @ApiModelProperty(value = "邮箱")
    private String email;
    @ApiModelProperty(value = "手机号")
    private String phone;
    @ApiModelProperty(value = "年龄")
    private Integer age;
    @ApiModelProperty(value = "性别")
    private String gender;
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
    @ApiModelProperty(value = "用户状态")
    private String status;
    @ApiModelProperty(value = "用户职级")
    private String level;
    @ApiModelProperty(value = "上级id")
    private Long parentId;
}*/